/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

/*
 * FormPrincipal.java
 *
 * Created on 22/07/2011, 17:50:41
 */

package projetolions;

import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import javax.swing.Icon;
import javax.swing.ImageIcon;
import javax.swing.JFrame;
import javax.swing.JMenu;
import javax.swing.JMenuBar;
import javax.swing.JMenuItem;
import javax.swing.JOptionPane;
import javax.swing.JLabel;
import projetolions.Empres_Doacao;

/**
 *
 * @author rti dev-01
 */
public class FormPrincipal extends javax.swing.JFrame {
    public FormPrincipal() {
        super ("Patrimonial");
        initComponents();
        this.jlImagemForm.setIcon(new ImageIcon("C:/Users/rti dev-01/Documents/NetBeansProjects/ProjetoLions/src/projetolions/logoLions.jpg"));
        
        
    }

    // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
    private void initComponents() {

        jlImagemForm = new javax.swing.JLabel();
        jMenuBar1 = new javax.swing.JMenuBar();
        menuPessoas = new javax.swing.JMenu();
        menuPatrimonio = new javax.swing.JMenu();
        itemEmprestimo = new javax.swing.JMenuItem();
        jMenuItem1 = new javax.swing.JMenuItem();
        menuRelatorios = new javax.swing.JMenu();
        jMenu1 = new javax.swing.JMenu();

        setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);
        setBackground(new java.awt.Color(255, 255, 255));

        jlImagemForm.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);

        menuPessoas.setText("Controle de Pessoas");
        jMenuBar1.add(menuPessoas);

        menuPatrimonio.setText("Controle de Patrimônio");

        itemEmprestimo.setText("Empréstimo");
        menuPatrimonio.add(itemEmprestimo);

        jMenuItem1.setText("Doação");
        menuPatrimonio.add(jMenuItem1);

        jMenuBar1.add(menuPatrimonio);

        menuRelatorios.setText("Relatórios");
        jMenuBar1.add(menuRelatorios);

        jMenu1.setText("Sair");
        jMenu1.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseClicked(java.awt.event.MouseEvent evt) {
                jMenu1MouseClicked(evt);
            }
        });
        jMenuBar1.add(jMenu1);

        setJMenuBar(jMenuBar1);

        javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());
        getContentPane().setLayout(layout);
        layout.setHorizontalGroup(
            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addComponent(jlImagemForm, javax.swing.GroupLayout.DEFAULT_SIZE, 670, Short.MAX_VALUE)
        );
        layout.setVerticalGroup(
            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addComponent(jlImagemForm, javax.swing.GroupLayout.DEFAULT_SIZE, 510, Short.MAX_VALUE)
        );

        pack();
    }// </editor-fold>//GEN-END:initComponents

    private void jMenu1MouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_jMenu1MouseClicked
            System.exit(0);

        // TODO add your handling code here:
    }//GEN-LAST:event_jMenu1MouseClicked

    public static void main(String args[]) {
        java.awt.EventQueue.invokeLater(new Runnable() {
            public void run() {
                new FormPrincipal().setVisible(true);

            }
        });
    }

    // Variables declaration - do not modify//GEN-BEGIN:variables
    private javax.swing.JMenuItem itemEmprestimo;
    private javax.swing.JMenu jMenu1;
    private javax.swing.JMenuBar jMenuBar1;
    private javax.swing.JMenuItem jMenuItem1;
    private javax.swing.JLabel jlImagemForm;
    private javax.swing.JMenu menuPatrimonio;
    private javax.swing.JMenu menuPessoas;
    private javax.swing.JMenu menuRelatorios;
    // End of variables declaration//GEN-END:variables

}
